package org.ihelpuoo.weboo.checkers;

public class ZipCodeChecker extends AbstractChecker
{

	public void setSetting(String setting)
	{

	}

	public boolean isValid(String value)
	{
		if (value.length() > 10)
			return false;
		for (int i = 0; i < value.length(); i++)
		{
			char c = value.charAt(i);
			if (c != '-' && (c < '0' || c > '9'))
				return false;
		}
		return true;
	}

}
